<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page import="java.util.*"%>
<%@ page import="com.yunysha.constants.YunyshaConstants"%>
<%@ page import="com.yunysha.beans.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@	page import="java.util.*"%>
<%
	Random rand = new Random();
	int num = rand.nextInt(100000);
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" href="css/style.css?v=<%=num%>" type="text/css">
</head>
<body>
	<%
		response.setHeader("Cache-Control", "no-cache");
		response.setHeader("Cache-Control", "no-store");
		response.setHeader("Pragma", "no-cache");
		response.setDateHeader("Expires", 0);
		if (request.getCookies() != null) {
			int cookiesLength = request.getCookies().length;
			for (int i = 0; i < cookiesLength; i++) {
				request.getCookies()[i].setMaxAge(-1);
			}
		}

		UserBean uBean = (UserBean) request.getSession().getAttribute(
				YunyshaConstants.SESSION_USER);
		String userName = null;
		
	%>

	<div class="header">
		<div class="logo">
			<a href="#"><img border="0" title="" height="80px" alt="" src="images/logo.png"></a>
		</div>
		<%
		if(uBean!=null){
			userName = uBean.getUserName();
			%>
		<div class="right_header">
			Welcome
			<%=userName%>, <a class="logout" href="#">Logout</a>
		</div>
		<%} %>
	</div>
</body>
</html>